package com.example.brain2;

import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.widget.ImageView;

public class SwitchImages implements AnimationListener {

	private boolean mCurrentView;
	ImageView image1;
	ImageView image2;

	public SwitchImages(boolean mCurrentView, ImageView image1, ImageView image2) {
		super();
		this.mCurrentView = mCurrentView;
		this.image1 = image1;
		this.image2 = image2;
	}

	@Override
	public void onAnimationEnd(Animation arg0) {

		image1.post(new SwapViews(mCurrentView, image1, image2));

	}

	@Override
	public void onAnimationRepeat(Animation arg0) {
		// no need to implement for now

	}

	@Override
	public void onAnimationStart(Animation arg0) {
		// no need to implement for now

	}

}
